import request from "@/utils/request";

// 获取全部app用户
export function getAppUserList(query) {
  return request({
    url: "/app/getAppUserList",
    method: "get",
    params: query,
  });
}

// 统计每天新增用户
export function everyDayNewUserNum(query) {
  return request({
    url: "/app/everyDayNewUserNum",
    method: "get",
    params: query,
  });
}
// 统计数据
export function countUserTags(query) {
  return request({
    url: "/app/countUserTags",
    method: "get",
    params: query,
  });
}
export function countOrder(query) {
  return request({
    url: "/api/countOrder",
    baseURL:"https://landing.app.jkcae.com",
    method: "get",
    params: query,
  });
}

// 获取一个用户余额
export function getAppUserBalancesInfo(query) {
  return request({
    url: "/app/getAppUserBalancesInfo",
    method: "get",
    params: query,
  });
}

// 获取一个余额来源
export function getAppUserBalanceTypeInfo(query) {
  return request({
    url: "/app/getAppUserBalanceTypeInfo",
    method: "get",
    params: query,
  });
}
// 统计合伙人分销员数量
export function getAgentChildUserCount(query) {
  return request({
    url: "/app/getAgentChildUserCount",
    method: "get",
    params: query,
  });
}
// 统计分销员订单数
export function getUserFxOrderCount(query) {
  return request({
    url: "/app/getUserFxOrderCount",
    method: "get",
    params: query,
  });
}
// 统计合伙人直销订单
export function agentFxOrderCount(query) {
  return request({
    baseURL:"https://landing.app.jkcae.com",
    url: "/api/agentFxOrderCount",
    method: "get",
    params: query,
  });
}
// 统计合伙人下的分销的订单数
export function agentFxUserOrderCount(query) {
  return request({
    baseURL:"https://landing.app.jkcae.com",
    url: "/api/agentFxUserOrderCount",
    method: "get",
    params: query,
  });
}
